﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OgilvyOne.UKNow.DAL;
using OgilvyOne.UKNow.Model;

namespace OgilvyOne.UKNow.BLL
{
    public class ConvertVideoBLL
    {
        /// <summary>
        /// 根据原始文件名获取视频转换状态
        /// </summary>
        /// <param name="oldName">原始文件名</param>
        /// <returns>返回状态</returns>
        public ConverVideoModel GetVideoStatusByOldName(string oldName)
        {
            ConverVideoModel model = null;
            List<ConverVideoModel> list= new ConvertVideoDal().GetConvertVideo(oldName);
            if(list.Capacity>0)
            {
                model = list[0];
            }
            return model;
        }
    }
}
